<?php

use Biz\model\activity\SNJActivityRecord;

/**
 * @deprecated
 * 三棱镜 广告活动记录
 * Class SNJRecordAction
 */
class HaveJoinSNJAction extends ActionPlugin
{
    const USER_LEVEL = self::LEVEL_REGISTER;

    public function main()
    {
        //  $this->uid = 55010;
        $is_join = false;
        $info = SNJActivityRecord::getRecordByCondition(['uid' => $this->uid , 'type' => SNJActivityRecord::DESIGN_TYPE]);
        if($info && is_array($info)){
            $is_join = true;
        }
        $this->setSuccess(['is_join' => $is_join]);

    }
}